(define-prefix-command 'ctl-z-map)

(global-set-key [(f12)] 'diff-buffer-with-file)

;;full screen bind
(global-set-key [f11] 'toggle-fullscreen)

;;set ecb start
(global-set-key [(f10)] 'ecb-minor-mode)

;;Used for tab bar 
(global-set-key [(meta j)] 'tabbar-backward)  
(global-set-key [(meta k)] 'tabbar-forward)
(global-set-key (kbd "<f5> f") 'tabbar-forward-group)
(global-set-key (kbd "<f5> b") 'tabbar-backward-group)

;;Go to the matched parenthesis if cursor is on the parenthesis. In the move.el
(global-set-key "%" 'my-match-paren)

;;used for recent opened file
(global-set-key "\C-x\C-r" 'recentf-open-files-compl)

;;Goto the specific char.In the move.el
(define-key global-map (kbd "\C-c g") 'my-go-to-char)

;;copy a whole-line
(global-set-key (kbd "C-c w") 'my-copy-lines)
 
;;kill the whole line
(global-set-key (kbd "C-k") 'kill-whole-line)

;;goto-the-specific line
(global-set-key (kbd "\C-xg") 'goto-line)

;;org mode settings
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)
(global-set-key (kbd "<f5> p") 'org-publish)
(global-set-key (kbd "C-M-r") 'remember)
(global-set-key (kbd "<f5> t") 'mytodo)


;;Set for the macro definition
(global-set-key "\C-x\C-n" 'start-kbd-macro)
(global-set-key "\C-x\C-p" 'end-kbd-macro)
(global-set-key "\C-x\C-l" 'call-last-kbd-macro)

;;ecb settings
(define-key global-map "\C-c.la" 'ecb-restore-default-window-sizes)
(global-set-key (kbd "\C-c1") 'ecb-goto-window-edit-last)

;;set window move key
(global-set-key "\C-c\C-u" 'windmove-left)
(global-set-key "\C-c\C-i" 'windmove-right)
(global-set-key "\C-c\C-p" 'windmove-up)
(global-set-key "\C-c\C-n" 'windmove-down) 
